package com.serialcommunication.listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import com.serialcommunication.interfaces.IBaseComponent;
import com.serialcommunication.interfaces.ITransmitComponent;

public class MyActionListener implements ActionListener {
	
	private ITransmitComponent component;
	
	public MyActionListener(ITransmitComponent pComonent) {
		component = pComonent;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		component.transmitData();
	}
}
